package com.toy.exception;

import com.toy.result.ResponseEnum;

/**
 * @author tystart
 * @create 2022-09-01-20:25
 */
public class ToyMallException extends RuntimeException{

    private ResponseEnum responseEnum;

    public ResponseEnum getResponseEnum() {
        return responseEnum;
    }

    public ToyMallException(ResponseEnum responseEnum){
        super(responseEnum.getMsg());
        this.responseEnum = responseEnum;
    }

}
